#include <iostream>
#include <WinSock2.h>
#include <windows.h>
#include "ServerNode.h"

int main()
{
	WORD ver;
	WSADATA data;
	ver = MAKEWORD(2, 2);
	WSAStartup(ver, &data);
	std::cout << "ssssss " << std::endl;
	ServerNode* p1 = new ServerNode;
	p1->initsock("tcp://127.0.0.1");
	p1->serverrun();

	p1->exitsock();
	if (p1)
	{
		delete p1;
		p1 = nullptr;
	}
	return 0;
}